package util;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;

/**
 * @author 螺旋仓颉
 * 用于设置一些常量
 */
public interface INumberRange {
    /**
     * 每行所对应的大行
     */
    HashMap<Integer, String> ROW_RANGE_MAP = new HashMap<Integer, String>() {{
        put(1, "1");
        put(2, "1");
        put(3, "1");
        put(4, "2");
        put(5, "2");
        put(6, "2");
        put(7, "3");
        put(8, "3");
        put(9, "3");
    }};
    /**
     * 每列所对应的大列
     */
    HashMap<Integer, String> COLUMN_RANGE_MAP = new HashMap<Integer, String>() {{
        put(1, "1");
        put(2, "1");
        put(3, "1");
        put(4, "2");
        put(5, "2");
        put(6, "2");
        put(7, "3");
        put(8, "3");
        put(9, "3");
    }};
    /**
     * 行范围
     */
    ArrayList<Integer> ROW_RANGE = new ArrayList<>(ROW_RANGE_MAP.keySet());
    /**
     * 列范围
     */
    List<Integer> COLUMN_RANGE = new ArrayList<>(COLUMN_RANGE_MAP.keySet());
    /**
     * 每格中可填入的范围,不在此范围时按照未确定处理
     */
    List<String> NUMBER_RANGE = Arrays.asList("1", "2", "3", "4", "5", "6", "7", "8", "9");
}
